#include "wid_processid.h"
#include "ui_wid_processid.h"
#include <QDebug>
#include <QProcess>
WID_ProcessID::WID_ProcessID(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::WID_ProcessID)
{
    ui->setupUi(this);
}

WID_ProcessID::~WID_ProcessID()
{
    delete ui;
}

void WID_ProcessID::on_pushButton_clicked()
{
    qDebug()<<"WID:"<<this->winId();
    qDebug()<<"ButtonId"<<ui->pushButton->winId();
}

void WID_ProcessID::on_processBt_clicked()
{
    QProcess *mprocess = new QProcess;
    mprocess->start("D:/Typeeasy/TypeEasy.exe");
    qDebug()<<mprocess->processId();
}
